package com.vitabuybuy.tv.network

import com.library.common.net.NetUrl
import com.vitabuybuy.tv.dto.*
import com.library.common.base.MessageModel


import rxhttp.IAwait
import rxhttp.wrapper.param.RxHttp
import rxhttp.wrapper.param.toResponse

/**
 * 作者：SimGa
 * 日期：2020/12/3
 * 时间：17:04
 * 包名：com.vitabuybuy.tv.network
 */
object DredgeStoreRepository {

    fun getStoreInfomation(): IAwait<DredgeStroeInfoDto> {
        return RxHttp.postJson(NetUrl.api_apply_open_store_infomation).toResponse()
    }

    fun dredgeStore(params: HashMap<String, Any>): IAwait<String> {
        return RxHttp.postJson(NetUrl.api_apply_open_store)
            .add("store", params).toResponse()
    }

    fun getAllStroeCate(): IAwait<MutableList<FirstCategoryDto>> {
        return RxHttp.postJson(NetUrl.api_get_all_store_category).toResponse()
    }
}